Fixed a few bugs in candidates and added voting feature to UI.