handle touch events in toolbar