make constant names consistent across resources
further changes for web UI; dialogs for errors, more bootstrap integration