Stack modes code minor modifications

Items' popup menu code minor modifications