Implemented create & edit method.