Added `update post` function