Rewrote all of angular scripts into components