merge function of launcher activite