Modified the voting functionality and some template page