creating the mainview