retain the mainview