update user interface and refactor seach box