show and hide popup is working