removed redundant codes in dialog_panel
removed mock files and fixed unit tests
fixed naming & use onSubmit / onCancel