Form won't show until page refresh