cleanup the app template