Added input submit event. Also added a way to disable the input.