Remove unnecessary dependencies between views and controller