fixing view loading