Dynamic number of inputs and mobile view