Refactored navbar status handling into a service