Changed right panel hide/show method and global window design