add directives and move modal login to embedded