basic working analytics interface, needs much more work