resolve problem with $watch
add templates for pageCtrl