clean logs controller file
make some part of the code more coffeescript styled