updating to angular 1.2.*