add resize in state manager