almost fixed historytab