Fixed some crossbrowser bugs. Added submit on enter functionality to the dialog.