Added ok and cancel buttons to accept source dialog.