Fix pages collapsing on new page

Currently, the page's listing will stay hidden, even if you add a new
page. This is kind of a bad user experience and this commit tries to fix
it by showing the listing if it is hidden.