setup category controller & search function