generalization of view layout: bugfix
bugfix: wrong message when not authorized
abstraction of common methods on view layout
abstraction of common methods on edition layout