update dynamically the global menu of app