make add group call a function sendForm()