Fixed a bug where the document would not redraw when coming from the background and when the song book is closed, stop the music player.