refactor action view