add app msg create and mode switch