Fixed issue with router.js

Editor data was not being released if the user navigated back to the
dashboard. This has been corrected.