split apptemplate_advanced and appframework