implemented retracting upvote and back button press for detail view