fixed crash and landscape layout