Fixed a compilation warning
Implement one more callback for the popup menu