added support for updating posts