Set treebeard attributes in preview on create view. Fixes #320

See: #320