decople controller from view