made main window responsible for deleting renderer and scene manager