fix welcome window show/hide bug