Adding functionality to exit menu entry