App is correctly switching pages and calling the API now.