applied logout function to all pages
moved navbar code into a separate file with imports in other files