Added screenstate change