i added icons to some of the buttons on the main page.
i extracted the js code of for each dialog in separate files.