Fixing some frontend API calls