add viewport rules