modifying reset button behaviour