updated switchDetail event handlers