Adding layout & input method