onlly show navigating bar on home page, try logout function