updated some angular practices