completing the header and other stuff for logged in page