added overlay to popup and remove popup