adding angular directives. build basic layer switcher