index-file changed to use create new element for main-views