online system

added stat for mid term and changed implementation to online edition,
but still wip