added interface for json file upload
added support for importing files and fixed refresh button so it actually does something