move OnMouseRelease function to private
adding helperfunctions for delete insert and update
adding slots for fetching change states from collapsegroupboxes