Created a directive for the topbar.