restore functionality for automatic cancelling of a popup menu based on other signals received