Fixed ambiguous layout and misplaced views