added prelim menue function