added directive to save note title on hitting enter