refactor. Use actions instead of files controllers