Add listener for exit button