Added set view functionnality