enable search function