Separated out the header view from the layout module. Implemented logout