make topbar work