update 3m, state, and testpage