Adding viewport rules