Switched the activities to fragments