Fixed small issue with active buttons not being set. Graph now redraws on resize