form disappears shortly after loading