updated GraphView to handle animation