update bar to fragment