refactoring livesearch using select2 for less code, more features