Feature/search inbox

`dialog` is not declared.