resize pre-populated fields on focus; improve logic so it accommodates for HTML in the content