updated viewer base for getting token by service url