Altered code to use view for qulification source