fixed layout problem causing overlapping widgets