adding auto generation of input layout