finish labnotes_history and improve resource history