Added window state machine diagram