add reset button and its slot function