split widget function