changed the viewport size and added better key handling to allow for toggling