added event listener to submit button to close the tip form box on click