Took out some unnecessary stuff from GraphActivity