mv code to paint_window and init mass_mailer