add delete and edit functionality to directive