added reset and undo buttons