Switch function of panel, detect this and execute other orders