Finally implemented the div input