added functionality to select from pantry button