Thanks to both of you for detailed explanation. It is working fine now except that I have to press "Cancel" twice before it is closed. It's not an issue but just want to know the reason.