Submit form on enter keypress. Hide dialog on successful submission. Populate values on show of dialog