before/after switch hooks + save prev wg
sr-speedbar switching fixes