working sorttabs class with position updates