Fixed attributes in preview and form, improved site dialog, and fixed site deletion