update logic for posts