fixed minor issues with cropping windows in ui