add logout && ui compatibility for landscape and portrait