Do not display a note count if the notebook is empty
Fix numerous issues related to window movement