added reset of input fields after save