Sensing view change correctly