Adds functionality allowing inputs to update styles and output, Refactors code
fixes conflics