made input bar reset on submit