implement all the interfaces of stateHandler