Rewrite of main layout to fluid / mobile resizing