Fix Details toggle in graph profile

This fixes a condition where clicking on the "Details" button and then clicking on the "Add to Dashboard" button would leave the Details button inverted. Updated the `a.details.btn` event binding to act like other panel buttons elsewhere.