fixing the popup menu