Clear button logic added