hides form once submitted