fix page controller hidden when necceesry