add activity type field and divide activity create function from activity log