Switched from Activity to Fragment in MainActivity