Log out lifecycle events and add horizontal layout