adjust viewport restrictions