Change to set focus to main panel