pages & layout rewrite in haml