use create toolbar function to create toolbar