remove dependency on popup.el