front layout changes and tablet mode