Edited upvote and downvote functions for question model