improved ongui selection