refactor. move applicationList and applicationListItem to directives