fix template for mobile