Refactor edit.html.erb with a submessage method