Adding the mainview