text selected on re-opening of window