add textarea auto-resizing; do some cleanup