added graph organizing feature but needs a lot of tweaking to be done before it's usable