optimize query and webcontent render