fix delete and create to show the result immediately