Added functionality to remove posts