prepare graph page