used event listeners for the nav and the user menus to handle the top-bar color change.