Updates base template to include mobileesp logic.