fix the bug that cant refresh screen after delete