register activity finished