moved all view attributes to dom elements