changed diagram and added links