added prettyfy on change