adds object using form
add view to the page