Push dmenu interaction into Dmenu class (also reformatted code)