refactoring the movie detail