Added functionality to modify posts