changed window component style, fixed onrestore of dashboard