Add layout of AutoLogOut
Add auto log out logic
Fix hostname changer to use #hostname