fixed change mode method.
integrate activity to dialog theme