made add fetch functions with window.load