the code horror on controller.js and view page has been removed.
controllers are now more readable and proper coding practices are implemented