code refactoring, page header sizing improvements