Added popup functionality on button click