added first window panel logic