updated control functionality
improving the dialog