Added templateName attribute to resolve bug
Reverted removal of targetObject so that footerButtons will continue to work