added events, more work on UI and DevControl