Fixed some bugs and colored selected table the same as voting.