bugfix for viewnote id, changed to nid(noteid)