Add example state change hook for deployment