changes table layout