add and update activity