fix options revealing
modify search function