Utility methods and note searching complete. Refactoring event listeners
and utility methods.