because you're passing the opf into goEdit instead of the actual module that will be edited the sidebar is breaking. we either need to always pass the actual target model into goEdit (as was the case when clicking on the book in the sidebar before that was changed to open/collapse) or move all the code for dereferencing opfs to their first file to the very top of goEdit. as this code stands things like the selected bit are being set on the opf before it is translated to the first content model