Refactor controller - user update operation