use object literals for viewAttributes; properly pass expression to new ParentWrapper