cleanup of globals (moved sidebarfunctions to caminio-ui)