deleted the switchDetail file and modified the UIFunctions file.