add delete hook for account and fix autocomplete