fixed init tab highlighting + fixed counting sum of records