refactor app varaible name and template