closing popup when you click submit