Added functionality to reset button