updated toolbar access checks
moved search function to model, since it's usually customized heavily