Adding autocomplete and history