fix search and photo admin control