add call back for enterframe