toolbar for sorting
changed sidebar to dockwidgets
function names fixed