bugfixes, cascading deletes on the model, added more restrictions if a group has a definitive activity