refactor action process to controller process