Code

Added callback function to allow shrinking of widgets