code for activity details