run project-switch-project hook prior to calling switch action