Adding close functionality on Pop-up