Refactored code to show the details of the movie