implemented voting and editing own votes