refactor frame.js and craete searchform widget

create searchform widgets, fix bug and