Link up exit button with actual functionality