Fixing getBEDoc. getBEView still not working fully