fixed header location and implemented logout