change application activity to fragment