added toolbar/ sorting function