fixed disabling of controls