refactor reset data button