added support for template item remove buttons and corrected pivot table entry removal for BaseModel saveRelationalData()