Added enhanced textarea functionality