UI & APP fixes

notification tool is in a modal.
fixed issues with bad data crashing the server.
ui now applies .active to the permit type.