supporting editing and deleting scenarios