Updating page to use new api