Removed bug from popup, disable the imagebuttons when in popup