moved inputs to rootScope