chosen select and refactoring