set viewport correctly