adding reset button and resetting on backend