add function to quickfix preview and next as loopable