Add callback functions for controls