set FLAGs for activity change, add tablet ui support