redraw layouts when a page is opened or closed
Merge pull request #138 from lexoyo/optim-app-init

redraw layouts when a page is opened or closed