Use instance instead of this for registering the gui handler