Fix of ViewObject class

Added automatic retrieve of content and page title, so is no longer
necessary to know the variable names.