Fix recent popup menu and missing import