Added create-update-post funcionality