Thank you for your reply Norbyte!
Indeed it worked. Frankly I came up with similar solution(simpler but with some drawbacks BUT since you explained it here so there is just no better way right now. Thanks again.