building the tablet layout