Added afterActivate method

... for easy app-specific customization of such behavior