added error checks for editing squads