Activity frame now passes all the parameters to the graphing class