Minor code cleanup
Changed dialogue appearance, updated template.html