Callbacks on enter and exit state added.