major refactoring for hw2 part 3

	modified:   controllers/movies_controller.rb
	modified:   views/movies/index.html.haml