add support for controller sharing across views

fixes #494