Update main.py

Added dialog to confirm deletion for books.