split win commands in state

split windows commands in state module