Form gets stuck at please wait