middlewares running onload

Getting middlewares to run onload.
Started changes to try to get them to load after render, but having issues and I'm not sure why yet.