Currently when the plotting the dataset, if the dataset is large the app freezes. Making the async calls to getF and getP will fix this issue.