add switch framelayout