improve the directory popup a bit