fixed issue with input not getting reset on edit