Fix some pages layout bugs (fixes #75)