update in directive