create_group functionalitymoved into group.php model from the view file.