took out alot of the ruby in the views and used angular directives