clean up templates. only support mobile view in non-angular mode.