Enable search function

Still need to do some adjustment.