Fixed permissions and api calls to make the app work again.