added resetValues function to input in form view