Adding show hide to popup