refactoring  navbar action UX