move class names into view to remove extra element