linking controller with view