Change middle mouse button menu function to release. This prevents execution when adding commands to the toolbar with the middle mouse button