Sizeing stuff and close callback for popup.