Restructure dashboard & bug fixes

- The start of some major refactoring on the dashboard.
- Fixed save & delete bugs with the key editor from #386