fixing up view references