added support for angular model in whole page