Refactored layout to desktop and tablet versions.