hooking up top bar to backend