updates for dock and sidebar, not tested yet.