Create directive for tables