fixed lay outing issues when screen size changes