Added callback on form ubmit to dismiss modal