update dialog
manage func
add exit box and tray menu