Added listening methods to input change