Added calcview hook for view and layout

calcview allows us to hook into the view/layout selecting function and override the view that is rendered
Merge pull request #537 from marcusgreenwood/patch-1

Added calcview hook for view and layout