add new layout for class tab, add new function for non class date