Created funtion to close popular votation