contents are now some angularjs directives
added utility methods