Added behave on the instances
simplified view parser
internal restructuring