added export buttons and json export