Changed private method to protected to allow override of topbar build method