Fix redundancy in onContextMenu()