fixed view reference errors