change text and hide popup on button click