add main controller and reference views
merge