Refactored front end to do ajax callbacks for the tables. Added candidates table