Fixed all controller files

- Fixed spaces-to-tabs issue
- Refactor in set_[class]_with_id
- Added some comments