Layout and InputMode selection