copied addpage to tabs