added comments and moved user edit controller logic to model