add setting to graph + fix few graph UI bugs