switched to fragments instead of activities