move API to the top of the page