Added code to draw an exit button