Editor: Moving the selection logic to the editor Activity