How do i close a form when it is submitted