added type to detect mobile and css classes to html and self init