tweaked main layout