re-wrote the main graph buttons, now supporting zoom and pan