fixed a lot of problems with angular. now working.
prettified