changed diagram on front end