add api service files and add cancel actions in editing views