fix viewport controls