map controls into directive