add widget for changing graphs