externalize resource definitions
update ui for forms and fixed whenObject calls