Add previous button to API calls