Added mobile template support