input component added. gets input data by watching data stored in the main input class.