Making changes in the index action of the controller