adding viewport rule