added ability to choose candidate in mapper.html