added ability to hide submit button