finish table layout