convert admin-sidebar to new factory with promises