Added some changes to angular js