fixed landscape/portrait issues