Remove Widget Not Working

When the button is pressed all of the logic works, but when its called from the custom event it does everything but fails to remove the widget from the parent.
Any idea why?