adds deleting relations, improves forms, fixes bugs