Changes not showing up and form disappears on refresh