update to Posts Controller