add APP directory in app's templates
refactoring code and build linkcolumn
update example