clear views before change state..etc