added createErrorDialog method to gui; fixed bug when trying to get selected node when no nodes are selected