Reload graphs tree in ajax callback, fixes #603