added generic modals and got a feel for exporting files