refactor action index