sort out basic layout