update layout tmplete