updating tablet layout