refactoring the movie view