fix overlapping widget problem