select-path onBeforeDestroy instead of onViewportChanged