added implementation for editing security groups