update sample activity