added unvoting logic