refactored upvote button with modal and login through ajax