hide overlay if submit is clicked