why storedContext and storedSelection?