Updated quickview function