implementing reset button
commenting code