Emit apply and close dialog when apply changes is clicked.

* Cleanup cancel button click binding.

Change-Id: I959a1b33e06a344a7946de8709f71f9c265a7604
Merge "Emit apply and close dialog when apply changes is clicked."