switched order of post and refresh