impove config class

add load config before window shows
add dialog resource