clean up viewport code