checking mobile in the template