Broke metadata out as a directive
Propogated table name/id to profile dialogs