Add click event on dashboard page and refactor navbar for authenticated users