Linked data and updated dialog window

Linked data between controllers, adjusted display. Also refactored dialog windows calls. Added 'clear localstorage' button.