up menu sample code