switch layout depending on params.isMobile or params.isTablet