moved element attribute validation to an external object, called during construction
working on element_view tests
made test page pretty
more tests for element view