Please wait displayed and hangs after submitting the form