uncommented the hide function after submitting links