refactor: move alert into ui helper object