organize codes of diagnosis graph panel; and add scroll ability to graph