on_enter, on_leave hooks.