js hook after activity added