fixed bugs on markup creation and added angularjs support for markup, fixed links on widget