generic cloudify widget controller implemented with angular