re layout class tab