change rank to vote in movie model and updated code