pass graph id to view