fix to input clear and content clear on submit