Onready function to load the inputtrace field