add logout event and fix spacing of buttons