Refactor code. Add url graphs to graph controller. Remove Index