Finish the main page search function, improve the fragment working