Implemented the listener pattern to the other fragments/activities.