Form gets stuck on processing and complains of a pop up window