implementing layout for tablets