Refactored interface between MainActivity and fragments