App key: change visibility only in case new state is different from
previous state