cache selection in events#edit