Added exit button and checkbox to gui