Why is my form freezing up?