Reformatted, added delete and confirmation dialog.