Handling popup menu selections.