fixed controller warning
added default event handler
fixed switch-default warnings