added inex action and index view