Change renderData object from req to res object