calling controller methods from view