Move onStateChange() to hanggammon.xml