choose the correct option based on the current window mode