Had to Move the code befor the point at wich new State is saved to see if it changed