fix delete, fix refresh issue, fix multiple note issue