Refactor/create view with controller as