Updating page to use the latest api