Make main panel resizeable.
Refactor update book note panel logic.
Keep the current note selected when window is resized. Fixed some bugs.