modify the state and bug page