moved graph into subview, fixed bugs it caused