Organize codes, add pop up confirm for delete.