function view_votings