adjust diagram view