add collapsible top-bar functionality