follow up fix to get middleware view functionality all working