fix page not refreshed after new/edit