Change RenderT from function to ReaderT