Pass element in callback