migrate all controller to coffee script