move sidebar code to admin module class