added persp switch hook to be run after a `persp-switch` action