before  activity detail