automatically open and close the popup menu / preview window