Fixed various layout bugs in relation to inputs.