add diagram view