improve code
add processViewController delegate to deal with the adding new process or editing process