adapt displaymode