Added activity update functionality