Rewrote main form view, fixed CoffeeScript functionality