now the doctor window can be maximized properly