plug controller to view on client side