Added the mainviewclass