Edit and delete handlers
Type and category for books. Fixed downloaded file extension.