Added logic to star and unstar posts