fixed refresh issue on new notes (page, booked), some small code cleaning