finish coding frame index template