Fixed enterkey and some bugs in notes