added register activity sample