refactor topbar by splitting in partials