rename events to posts and fix save error