fix permission
fix templates
angular 1.2.6