Added necessary hooks to make it 'select' with selection replacing input