added activate handler