Created a shared controller

Moved sidebar action and view to shared
sidebar now takes a sidebarviewmodel
dirty sidebarhack is now marginally less dirty