create action and index view