directives and main angular app are now in sync