This is going through each mainMenuItem, whereas the other MMI was the one that was clicked on. 
This is for closing all of the other open ones.