Refactored notes and inbox html