Refactored BookDialogFragment to make it reusable.