add export summary statistics button and functionality