edited form and addpost method