pantry popup select and cancel buttons functioning