add ajax and process for deleting posts