refactor out reset button