Updates to template files and new mobile detection library