Simply change all before changing the desired object.
For instance:
Main Event
On mouse overlapping menuitem
action: tmpvariable = menuitem.UID
sub event 1
pick all menuitem
action: menuitem set frame 0
sub event 2
pick menuitem by evaluate menuitem.UID = tmpvariable
action: menuitem set frame 1