update topology js, add layout