added user activity log functionality