adapt toolbar