Math button now opens a modal dialog