made statistics page dynamic