Added all functionality for notes