make menu functions work