Refactoring html and showing notes.