added a reload in the js