Added communication between the two fragments from the main activity. Fixed bugs in regards to null pointer exceptions.