add ag setting. fix window size submode setting