Additional Frontend Fixes

- cleans up double entries in collapsable/expandable array and fixes an issue where setSettings is called twice
- Adds "ESC" command to modal window for closing