create and edit posts working