Reformat the MobileTemplate class