Creating quick view function