change pop up one by one to ajax