creating DetailsFragment class