Modified event listener onChange to call only when element does not have edited class.