update preview

editing input needed to be focused to update preview