reset button partially working