Trying to dynamically change viewport