Refactoring page header bar