some UI tweaks and reuse more code between add/edit alert