fix access right and graph widget

init function is not called inside the require