bug fixing and added an example implementation of a GraphPanel