fixed everything, added reset button