add state flags and new activity to show them