update with dynamic element height