got ride of fromsubmit and change modal js because same purpose