Added code to hide form after submit