updated launch master activity logic