Update post funtionality works