turning topbar from an element to a class