finish pie ajax refresh