make radio buttons behave properly, create separate scopes for graph directives