Connected controller to view

fixed issue #51