fix bugs in labnotes Detail form