custom directive for table actions