Added loading property to api