setting window and panes index