How to stop changes ?

If, else is working properly