adding the form to create a new group and correcting listener