implemented logging of user activity