works with new page
Made new functions for api calls