usage of controller in a page