Adds logout and back buttons.