fixing contextual menu behavior and add desktop notification