Bug fixing in view order of different panels