selection manager and input manager