Form freezes and not able to click the Next button