modify document.rb and _form.html.haml from documents views