added auto view loading