Created a popup action for when the button is pressed.