working towards issue #7 . editing and adding works in the dom. Needs to be applied in Database. In controller I guess
added the functions in the controller and directive for deleting and updating