changes graph popup to use dialog, tweaks mugl template