finalize layout for tablet and mobile devices