adding an activity to the person details

Change-Id: Ic5daacff1ec9083c57af6f801d1cf01d6cd84e57
refactoring of code 

Change-Id: I41f90b048b61d8349ae232f46360af87c816b15a