update newly created post works