remove middleware, overengineered as we only (currently) need this logic in this particular view