Tiny refactor. remove some unneccessary codes.
Use slice partten in controllers to avoid hacking mass-assignment.