add togglePause method to grid