added functionality for Reset button