Add debug logging for view loading