Upgraded to angular 1.2.3 and started using directives