Move autocomplete text field to its own class