adding form and editing views