changes to graph generation button