Remove unused module defines.
Call submit method when enter key is pressed.
Add dismiss method.
Intercept enter keypress and handle the same as if 'Add' button was clicked.