made callback functions for grid widgets take an argument