add note functionality