edit item modal switched to using directive