Created new private utility funtion to handle view changes. Added test