add comments and adding conditional statment to show and hide vote button