Update activity functionality