get suggestions and cursor position working