implement modal popover
fix typo
switch to modal
add autocomplete template