Adding methods to add and reput input fields