add Element API token and alter rateengine view to include documents