Add oppress and onrelease method.