switching viewport handling to view