onclick working with diagraph features